* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.left-panel {
    flex: 1;
    background: linear-gradient(to bottom right, #4a00e0, #8e2de2);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.left-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.left-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.features {
    position: relative;
    z-index: 2;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature i {
    font-size: 1.5rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature div h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature div p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.register-form {
    flex: 1;
    padding: 50px 40px;
    background: white;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #777;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #4a00e0;
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.1);
    outline: none;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.role-selection {
    margin: 30px 0;
}

.role-selection h3 {
    margin-bottom: 15px;
    color: #444;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.role-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.role-card.selected {
    border-color: #4a00e0;
    background: #f0e8ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.role-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4a00e0;
}

.role-card h4 {
    color: #333;
    margin-bottom: 5px;
}

.role-card p {
    color: #777;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(74, 0, 224, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.login-link a {
    color: #4a00e0;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        padding: 30px 20px;
    }

    .register-form {
        padding: 30px 20px;
    }

    .role-cards {
        grid-template-columns: 1fr;
    }
}

.password-strength {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.password-rules {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #777;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}